import Vue from 'vue'
import App from './App.vue'
// 导入vuex仓库
import store from './store'
// 导入处理rem的
import 'lib-flexible'
// 导入路由
import router from './router';
// 导入Vant
import Vant from 'vant';
// 导入Vant的所有样式
import 'vant/lib/index.css';
// 导入awsome字体图标
import 'font-awesome/css/font-awesome.min.css';
// 安装Vant
Vue.use(Vant);
const getUrl = (icon = '') => {
  if (icon) {
    if (icon.includes('uploadimages')) {
      icon = icon.replace('uploadimages','upload/images/')
    }
    return 'http://124.223.14.236:8060/' + icon;
  } else {
    return icon
  }
}
Vue.config.productionTip = false
Vue.prototype.$getUrl = getUrl
new Vue({
  store,
  router,
  render: h => h(App),
}).$mount('#app')
